<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html style="height:100%;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>优惠券</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="apple-mobile-web-app-capable" content="yes">
     <meta name="screen-orientation"content="portrait">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta content="telephone=no" name="format-detection">
<script src="${ctxStatic }/jquery/jquery-1.8.3.min.js"></script>
<script src="${ctxStatic}/wx/components/font-awesome/js/fontSize.js" ></script>
<link href="${ctxStatic}/wx/css/coupon-sharing.css" rel="stylesheet">
<link rel="stylesheet"  href="${ctxStatic}/wx/css/reset.css"/>
<link rel="stylesheet"  href="${ctxStatic}/wx/components/font-awesome/css/font-awesome.min.css"/>
 <link rel="stylesheet" href="${ctxStatic}/bootstrap/bootstrap.min.css" />
<script type="text/javascript">
	$(function(){
		var browser = {
 versions: function () {
  var u = navigator.userAgent, app = navigator.appVersion;
  return {   //移动终端浏览器版本信息
   trident: u.indexOf('Trident') > -1, //IE内核
   presto: u.indexOf('Presto') > -1, //opera内核
   webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
   gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
   mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
   ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
   android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
   iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
   iPad: u.indexOf('iPad') > -1, //是否iPad
   webApp: u.indexOf('Safari') == -1 //是否web应该程序，没有头部与底部
  };
 }(),
 language: (navigator.browserLanguage || navigator.language).toLowerCase()
}
	if (browser.versions.mobile) {//判断是否是移动设备打开。browser代码在下面
  var ua = navigator.userAgent.toLowerCase();//获取判断用的对象
  if (ua.match(/MicroMessenger/i) == "micromessenger") {
    //在微信中打开
   $('#download').click(function(){
    	window.location.href="https://itunes.apple.com/us/app/%E9%9C%9E%E5%AE%A2%E7%BA%A6%E8%BD%A6/id1263380176?l=zh&ls=1&mt=8";
    })
  }
  if (ua.match(/WeiBo/i) == "weibo") {
    //在新浪微博客户端打开
  }
  if (ua.match(/QQ/i) == "qq") {
    //在QQ空间打开
  }
  if (browser.versions.ios) {
    //是否在IOS浏览器打开
    $('#download').click(function(){
    	window.location.href="https://itunes.apple.com/us/app/%E9%9C%9E%E5%AE%A2%E7%BA%A6%E8%BD%A6/id1263380176?l=zh&ls=1&mt=8";
    })
    
  } 
  if(browser.versions.android){
    //是否在安卓浏览器打开
    alert(14)
  }
} else {
  //否则就是PC浏览器打开
  $('#download').click(function(){
    	window.location.href="https://itunes.apple.com/us/app/%E9%9C%9E%E5%AE%A2%E7%BA%A6%E8%BD%A6/id1263380176?l=zh&ls=1&mt=8";
    })
}	
	})
	

</script>
</head>
<body>
<section style="width: 100%;height:auto;float: left;position: relative;">
    <div class="main">
    <p><img src="${ctxStatic}/wx/img/fenx/xiakeyeuche@2x.png"></p>
    </div>
    <div class="main-1">
        <p>让包车更简单</p>
        <p>4-57座车型任选</p>
    </div>
   <div class="dg_box">
       <div class="moor container">
           <div class="dg_box_1 col-xs-7">
               <p style="font-size:17px">${param.name }</p>
               <p style="color: #333;font-size:15px">满${param.minPrice }可用</p>
           </div>
        <div class="dg_box_2 col-xs-5">
            <p> ￥${param.price }</p>
        </div>
       </div>
       <div class="dg_border"></div>
       <div class="time container">
           <p>
    	<c:if test="${param.dateType!=0 }">有效期${param.dateLimit }天</c:if>       
    	<c:if test="${param.dateType==0 }">有效期至${param.timeOver }</c:if>       
           </p>
       </div>
   </div>
    <div class="dg_button container">
        <button id="download" style="width: 100%;color: #fff;font-size: 16px;">立即领取</button>
    </div>
</section>
</body>
</html>

